﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Faust.Andrew.MTG.Player.PlanesControl"
	x:Name="UserControl" ToolTip="{Binding Presenter.Model.CurrentPlane.CardText, ElementName=UserControl, Mode=Default}" d:DesignWidth="446" d:DesignHeight="312" AllowDrop="True" PreviewDrop="Plane_PreviewDrop"
	>
	<UserControl.Resources>
	</UserControl.Resources>

	<Viewbox>

		<Grid x:Name="LayoutRoot">
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>
			<Button HorizontalAlignment="Left" VerticalAlignment="Top" Background="{x:Null}" BorderBrush="{x:Null}" ToolTip="Attempt Planeswalk" Click="Planeswalk_Click" Panel.ZIndex="10" Width="48" MaxWidth="48" MaxHeight="48">
				<Image Source="images/Knob Snapforward.png" HorizontalAlignment="Center" VerticalAlignment="Center"/>
			</Button>
			<Image Source="{Binding Presenter.Model.CurrentPlane.ImageSource, ElementName=UserControl, Mode=Default}"/>
			<ItemsControl HorizontalAlignment="Left" Margin="100,56,0,0" VerticalAlignment="Top" Width="320" Height="96" Panel.ZIndex="50" ItemsPanel="{DynamicResource CounterItemsPanel}" ItemTemplate="{DynamicResource CounterListItemTemplate}" ItemsSource="{Binding Presenter.Model.CurrentPlane.Counters, Converter={StaticResource CounterListConverter}, ElementName=UserControl, Mode=OneWay}"/>
		</Grid>
	</Viewbox>
</UserControl>